package person.drf.shop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import person.drf.common.utils.PageUtils;
import person.drf.shop.product.entity.AttrEntity;
import person.drf.shop.product.vo.AttrGroupRelationVo;
import person.drf.shop.product.vo.AttrRespVO;
import person.drf.shop.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author dengrunfa
 * @email 1270733328@qq.com
 * @date 2020-04-07 15:45:24
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVO getAttrInfo(Long attrId);

    void updateAttr(AttrRespVO attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteReltion(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

